from tkinter import *
win=Tk()
win.title("My First GUI")
win.geometry("500x500")

for i in range(36):
    for j in range(36):
        # 判断颜色：根据行列索引和的奇偶性决定背景色
        bg_color = "black" if (i + j) % 2 == 0 else "white"
        # 文字颜色与背景色相反，确保可见性
        fg_color = "white" if bg_color == "black" else "black"

        Button(win, text="(" + str(i) + " ," + str(j) + ")", borderwidth=1, relief=SOLID,
               bg=bg_color, fg=fg_color).grid(row=i, column=j)
Label(win,text="yolo",fg='blue',font=('Arial',16,'bold')).grid(row=17,column=37)
win.mainloop()